﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using YasharEl.Infrastructure.Configuration;

namespace YasharEl.Infrastructure.ExceptionHandling.Configuration
{
    public partial class MessageTranslatorTypeCallbackValidatorClass
    {
        public static void MessageTranslatorType(object value)
        {
            Type type = value as Type;
            if (type != null)
            {
                new ImplementorValidator<IMessageTranslator, InvalidSystemConfigurationException>()
                    .ValidateType(type, "MessageTranslatorType");
            }
        }
    }
}
